Replace gdk_threads_add_idle* with g_idle_add()
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 2 Feb 2018 14:08:02 +0000 (15:08 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Sat, 3 Feb 2018 11:06:58 +0000 (12:06 +0100)
commit334acbfc39cc08869932ec046e4d13e6c4b64be6
tree006f9525b16e22231dde569193617bc62182ccda
parentdfc131c7ecf93287caef22ddac9b37b4825b2cf5
Replace gdk_threads_add_idle* with g_idle_add()

The main GDK thread lock is not portable and deprecated.

The only reason why gdk_threads_add_idle() and
gdk_threads_add_idle_full() exist is to allow invoking a callback with
the GDK lock held, in case 3rd party libraries still use the deprecated
gdk_threads_enter()/gdk_threads_leave() API.

Since we're removing the GDK lock, and we're releasing a new major API,
such code cannot exist any more; this means we can use the GLib API for
installing idle callbacks.

https://bugzilla.gnome.org/show_bug.cgi?id=793124
18 files changed:
gdk/broadway/gdkwindow-broadway.c
gdk/quartz/gdkscreen-quartz.c
gdk/x11/gdkasync.c
gtk/a11y/gtkiconviewaccessible.c
gtk/gtkfilechooserwidget.c
gtk/gtkicontheme.c
gtk/gtkmenusectionbox.c
gtk/gtkprintoperation.c
gtk/gtkprintunixdialog.c
gtk/gtksearchenginemodel.c
gtk/gtksearchenginesimple.c
gtk/gtktextview.c
gtk/gtktoolbar.c
gtk/gtktreeview.c
gtk/gtkwidget.c
gtk/gtkwindow.c
tests/stresstest-toolbar.c
testsuite/a11y/tree-relationships.c